<?php
/**
 * 监理通知回复单控制器
 * @author ZhouYP
 **/
namespace Admin\Controller;
use Common\Controller\WahahabaseController;
class SupervisionNoticeReplyController extends WahahabaseController{

	public function _initialize() {
		parent::_initialize();
		$this->deal_model = D("Common/SupervisionNoticeReply");
		$this->att_model = D("Common/Attachment");
		
		$this->check = array('code');
	}
	/**
     *  主页
     */
	public function index(){
		/**搜索条件**/
		$where = array("d.is_deleted"=>array('neq', 1));
		$supervisory_content = trim(I('request.supervisory_content'));
		if($supervisory_content){
			$where['supervisory_content'] = array('like',"%$supervisory_content%");
		}	
        $this->getDepartLevel();
		$this->indexPage($where);
	}

	public function add(){
		$this->display();
	}
    public function add_post(){
		$this->addFilePost(U("SupervisionNoticeReply/index"), 10);
	}
	public function edit(){
		$this->editFileDisplay(10);
	}
	public function edit_post(){
		$this->editFilePost(U("SupervisionNoticeReply/index"), 10);
	}
    public function view(){
    	$this->getDepartLevel();
     	$this->editFileDisplay(10);
	}
}
?>